//
//  XDBankCardFooterView.m
//  xindailianmeng
//
//  Created by 张东 on 2017/2/22.
//  Copyright © 2017年 xindailianmeng.cn. All rights reserved.
//

#import "XDBankCardFooterView.h"
#import "UIImageView+WebCache.h"
@interface XDBankCardFooterView ()
@property (weak, nonatomic) IBOutlet UIImageView *bankImg;
@property (weak, nonatomic) IBOutlet UILabel *bankNameLb;
@property (weak, nonatomic) IBOutlet UILabel *bankCardStyleLb;
@property (weak, nonatomic) IBOutlet UILabel *bankNumLb;

@end

@implementation XDBankCardFooterView

- (IBAction)changeBtnClick {
    
    if ([self.delegate respondsToSelector:@selector(changeBankCard:)]) {
        [self.delegate changeBankCard:self];
    }

}

- (void)footerViewWithbankIconUrl:(NSString *)bankIconUrl bankName:(NSString *)bankName bankCardType: (NSString *)bankCardType bankNumber: (NSString *)bankNumber {
    
    [self.bankImg sd_setImageWithURL:[NSURL URLWithString:bankIconUrl]];
    
    self.bankNameLb.text = bankName;
    
    self.bankCardStyleLb.text = bankCardType;
    
    self.bankNumLb.text = bankNumber;
}
@end
